<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>查询电影</title>
    <link rel="stylesheet" href="assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="assets/css/bootstrap-maizi.css"/>
</head>
<body>
<!--导航-->
<jsp:include page="header.jsp"/>
<!--导航-->

<div class="container">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group">
                <a href="${pageContext.request.contextPath }/adminMovie" class="list-group-item">影片列表</a>
                <a href="${pageContext.request.contextPath }/adminMovie?method=doSave" class="list-group-item active">新增影片</a>
                <a href="${pageContext.request.contextPath }/adminMovie?method=doSearch"
                   class="list-group-item">查询影片</a>
            </div>
        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h1>影片管理</h1>
            </div>
            <div class="container">
                <ul class="nav nav-tabs" role="tablelist">
                    <li role="presentation" class="active">
                        <a href="#SearchByMovieName" aria-controls="special" role="tab" data-toggle="tab">通过影片名称查找</a>
                    </li>
                    <li role="presentation">
                        <a href="#SearchByDirectorName" aria-controls="special" role="tab"
                           data-toggle="tab">通过影片导演查找</a>
                    </li>
                    <li role="presentation">
                        <a href="#SearchByActorName" aria-controls="special" role="tab" data-toggle="tab">通过影片演员查找</a>
                    </li>
                </ul>

                <div class="tab-content">
                    <div role="tabpanel" class="tab-pane active fade in" id="SearchByMovieName">
                        <form action="${pageContext.request.contextPath }/adminMovie?method=searchByMovieName"
                              method="post" class="user_search">
                            <div class="form-group">
                                <label for="movieName">影片名称:</label>
                                <input type="text" id="movieName" class="form-control" name="movieName"
                                       placeholder="请在此输入影片名称"/>
                            </div>
                            <button type="submit" class="btn btn-default">查询</button>
                        </form>
                    </div>

                    <div role="tabpanel" class="tab-pane fade" id="SearchByDirectorName">
                        <form action="${pageContext.request.contextPath }/adminMovie?method=searchByDirector"
                              method="post" class="user_search">
                            <div class="form-group">
                                <label for="directorName">导演姓名:</label>
                                <input type="text" id="directorName" class="form-control" name="directorName"
                                       placeholder="请在此输入导演姓名"/>
                            </div>
                            <button type="submit" class="btn btn-default">查询</button>
                        </form>
                    </div>

                    <div role="tabpanel" class="tab-pane fade" id="SearchByActorName">
                        <form action="${pageContext.request.contextPath }/adminMovie?method=searchByActor" method="post"
                              class="user_search">
                            <div class="form-group">
                                <label for="actorName">演员姓名:</label>
                                <input type="text" id="actorName" class="form-control" name="actorName"
                                       placeholder="请在此输入影片演员姓名"/>
                            </div>
                            <button type="submit" class="btn btn-default">查询</button>
                        </form>
                    </div>

                </div>
            </div>
        </div>

    </div>
</div>

<!--footer-->
<jsp:include page="footer.jsp"/>
<!--footer-->

<script src="assets/javascripts/jquery.min.js"></script>
<script src="assets/javascripts/bootstrap.min.js"></script>
<script src="assets/javascripts/Chart.js"></script>
<script src="assets/javascripts/script.js"></script>
</body>
</html>